{extend name="public/base"/}
 {block name="content"}
  <section class="content">
            <div class="col-md-9" style="width:100%">
              <div class="box box-default">
			<div class="box-header">
				<h3 class="box-title">
				<a href="{:U('Links/index')}" class="btn btn-primary">链接列表</a>
				</h3>
				 <h3 class="box-title">
				<a href="{:U('Links/add')}" class="btn btn-primary">添加链接</a>
				</h3> 
				<h3 class="box-title">
				<a href="{:U('Links/lid_index')}" class="btn btn-primary">类别列表</a>
				</h3> 
				<h3 class="box-title">
				<a href="{:U('Links/lid_add')}" class="btn btn-primary">添加类别</a>
				</h3> 
				
			</div>
				<!-- /.box-header -->
                <!-- form start -->
                  <form action="{:U('Links/add')}" method="post">
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-12">
                      <table class="table table-bordered">
					  
					  	<tr>
                            <th width="140">类别:</th>
                        <td>						
							<select name="lid" class="form-control">
							<option value="0">请选择类别</option>
				            {volist name="linktype" id="data"}
							<option value="{$data.id}">{$data.name}</option>
							{/volist}
						     </select>
						</td>
                        </tr> 
						
                        <tr>
                            <th width="140">名称:</th>
                            <td><input class="form-control" type="text" name="name" value="" size="30"></td>
                        </tr>
						
						 <tr>
                            <th width="140">logo:</th>
                            <td>
                                <div id="logo" class="wu-example-one" name="logo">
                                    <!--用来存放文件信息-->
                                    <div id="thelist-logo" class="uploader-list">
                                        <?php if(!empty($value)){ ?>
                                        <div class="item">
                                            <input type="hidden" name="{$key}" value="{$value}" />
                                            <image style="width:100px;height:100px" src="__UPLOADS__{$value}" />
                                        </div>
                                        <?php }; ?>
                                    </div>
                                    <div class="btns">
                                        <div class="picker" id="picker-logo">图片上传</div>
                                    </div>
                                </div>
                            </td>
                        </tr>
						
						 <tr>
                            <th width="140">链接:</th>
                            <td><input class="form-control" type="text" name="links" value="" size="30"></td>
                        </tr>
						

						  
					
                      </table>
                    </div><!-- /.col -->
                  </div><!-- /.row -->
                </div><!-- /.box-body -->
                <div class="box-footer">
                  <button type="submit" class="btn btn-primary">确认</button>
                </div>
				</form>
              
              </div><!-- /.box -->
            </div>
			<!-- /.col -->
			</section>
 {/block}
